package it.fuesi.expired.api.base;

import it.fuesi.expired.model.base.ErrorModel;
import it.fuesi.expired.model.base.IModel;
import it.fuesi.expired.model.base.ModelCollection;


public interface CrudService<T extends IModel> extends BaseService{

	public ModelCollection<T> getAll() throws Exception;
	
	public T get(String _id) throws Exception;
	
	public T add(T model) throws Exception;
		
	public T update( T model) throws Exception;
	
	public ErrorModel delete(String _id) throws Exception;
	
	public ErrorModel deleteAll() throws Exception;
	
}
